<?php defined( '_VALID_MOS' ) or die( include_once("../../404.php") );
$sql = "SELECT `Id`, `title`, `folder_icon`, `description`, Date_FORMAT(`date_add`, '%d/%m/%Y') As `date_add`, `status`, `order`
		FROM `group_gallery` order by `order` desc"; 
$cmd = $mysqli->prepare($sql);
$cmd->execute() or die($mysqli->error);
$cmd->bind_result($Id, $title, $folder_icon, $description, $date_add, $activated, $order_num);
$cmd->store_result();
?>
<div id="box_thuvienanh">
	<div id="sub_box_thuvienanh">
		<div class="bg_tt_right"><div class="bg_tt_left"><div class="bg_tt"><div class="text_tt">THƯ VIỆN ẢNH</div></div></div></div>
		<div id="sub_box_thuvienanh1">
			<div class="ct_right">
				<div class="ct_left">
					<div class="ct">
						
						<div class="wrapper">
							<?php while($cmd->fetch()){ ?>
								 <div class="demofolder">									
									<a href="./com_gallery/detail/<?php echo $Id; ?>/24.csp" title="<?php echo $title; ?>"><img src="<?php echo $folder_icon; ?>" alt="<?php echo $title; ?>" /></a>
									<div class="galerytitle"><?php echo $title; ?></div>
								</div>
							<?php } ?>
						
							<div class="clear"></div>
						
						</div>
						
					</div>
				</div>
			</div>
			<div class="bg_bt_right"><div class="bg_bt_left"><div class="bg_bt"><div class="text_bt">&nbsp;</div></div></div></div>
		</div>
	</div>
	<div class="clear"></div>
</div>